package com.xz.courseschedule.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Author: zys
 * @CreateTime: 2025-05-24
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class Room implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Excel(name = "教室编号")
    private String roomNo;//教室编号

    @Excel(name = "教室名称")
    private String roomName;//教室名称

    @Excel(name = "所在教学区域编号")
    private String areaNo;//所在教学区域编号

    @Excel(name = "教学区域名")
    private String areaName;//教学区域名

    @Excel(name="教室人数容量")
    private Integer capacity;//教室人数容量

    @Excel(name="教室属性")
    private String attr;//教室属性 01:理论 02:实验 03:实践 04:体育课

    @Excel(name = "备注")
    private String remark;//备注
    /**
     * 创建人
     */
    private Long createdBy;

    /**
     * 创建时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createdTime;

    /**
     * 更新人
     */
    private Long updatedBy;

    /**
     * 更新时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updatedTime;



}
